﻿#建议保存编码为：bom头 + utf8
if ( ($IsWindows -eq $True) -or ($PSVersionTable.psversion.major -lt 6) ) #win
{
	& 'c:\ProgramData\kasini3000\0k_source.ps1'
}

if ($IsLinux -eq $True)
{
	& '/etc/kasini3000/0k_source.ps1'
}


& 'zd只读nodelist文件.ps1'

foreach ($private:temp1 in $global:所有被控机)
{
	Write-Host -NoNewline '.'
	[System.Net.IPAddress]$ip2 = 0
	if (   [System.Net.IPAddress]::TryParse($private:temp1.ip,[ref]$ip2)      )
	{
		if (${temp1}.被控机uuid.tostring().trim() -eq '')
		{
			${temp1}.被控机uuid = (New-Guid).Guid
		}
	}
	else
	{
		continue
	}
}

& 'zl整理写入nodelist文件.ps1'

exit 0
